//
//  String+Emoji.swift
//  1-自定义键盘搭建
//
//  Created by yellow on 15/10/24.
//  Copyright © 2015年 yellow. All rights reserved.
//

import Foundation

extension String{

    //将16进制字符串转化为Unicode字符串
    var emoji:String{
        let scanner = NSScanner(string: self)
        var value:UInt32 = 0
        scanner.scanHexInt(&value)
        return String(Character(UnicodeScalar(value)))
    }
}